//package com.qianya.system.manage.web.sys.controller;
//
//import com.qianya.system.manage.web.sys.model.SysSetAdminIp;
//import com.qianya.system.manage.web.sys.service.ISysSetAdminIpService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//
//import org.springframework.web.bind.annotation.*;
//import org.springframework.beans.BeanUtils;
//import com.qianya.model.common.CommonResult;
//import com.qianya.model.pojo.sys.qo.SysSetAdminIpQO;
//
//import javax.servlet.http.HttpServletRequest;
//    import org.springframework.web.bind.annotation.RestController;
///**
//* <p>
//    * 后台ip访问限制 前端控制器
//    * </p>
//*
//* @author lhl
//* @since 2020-06-11
//*/
//    @RestController
//@RequestMapping("/sys/sys-set-admin-ip")
//@Api(value = "SysSetAdminIpController", tags = "后台ip访问限制接口")
//@Slf4j
//public class SysSetAdminIpController {
//
//
//    @Autowired
//    private ISysSetAdminIpService sysSetAdminIpService;
//
//    @PutMapping(value = "/update")
//    @ApiOperation("修改后台ip访问限制")
//    public CommonResult update(@RequestBody  SysSetAdminIpQO sysSetAdminIpQO,HttpServletRequest request){
//        SysSetAdminIp sysSetAdminIp = new SysSetAdminIp();
//        BeanUtils.copyProperties(sysSetAdminIpQO,sysSetAdminIp);
//        return sysSetAdminIpService.renewal(sysSetAdminIp,request);
//    }
//
//    @ApiOperation("查找后台ip访问限制")
//    @GetMapping(value = "/find")
//    public CommonResult find(){
//        return CommonResult.success(sysSetAdminIpService.list());
//    }
//
//    }
